<?php
class AddressManager {
	
	public $addresses = array(
		'10.6.207.188',
		'10.6.207.188',
	);
	
	function outputAddress($resolve) {
/*		if (!is_bool($resolve)) {
			exit("resolve is not an boolean value\n");
		}*/
		if (is_string($resolve)) {
			$resolve = preg_match('#false#i', $resolve) ? true : false;
		}
		foreach ($this->addresses as $address) {
			print $address;
			if ($resolve) {
				//print ": ".gethostbyaddr($address);
				echo "  resolve ok......";
			}
			print "\n";
		}
	}
}

$settings = simplexml_load_file('Test.xml');
var_dump($settings);
$manager = new AddressManager();
$manager->outputAddress((string)$settings->resolvedomains);